package com.api.course;

import com.edu.entity.HfdClassInfo;
import com.edu.entity.HfdClassSkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>title: com.api.</p>
 * author 
 * description:
 */
@Component
//远程调用
@FeignClient("edu-course")
@RequestMapping("/course")
public interface CourseClient {

    /**
     * 声明skuId给李川调用
     * @param skuId
     * @return
     */
    @RequestMapping("/findClassSkuInfoBySkuId")
    HfdClassSkuInfo findClassSkuInfoBySkuId(@RequestParam("skuId") Integer skuId);

    /**
     * 声明查询所有spu商品信息给search调用
     * @return
     */
    @RequestMapping("/findClassInfo")
    public List<HfdClassInfo> findClassInfo();

}
